package cn.com.demo.microservice.anquan.service.impl;

import cn.com.demo.microservice.anquan.mapper.AqAccountMapper;
import cn.com.demo.microservice.anquan.service.IAccountService;
import cn.com.demo.microservice.entity.AqAccount;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class AccountServiceImpl implements IAccountService {
    @Autowired
    private AqAccountMapper accountMapper;
    @Override
    @Transactional(readOnly = true)
    public AqAccount searchByCode(String code) {
        return this.accountMapper.selectByCode(code);
    }
}
